import Home from "../pages/Home/Home.jsx";
import { createBrowserRouter } from "react-router-dom";
import Article from "../pages/Article/Article.jsx";
import Sorts from "../pages/Sorts/Sorts.jsx";
import My from "../pages/My/My.jsx";
import Layouts from "../Layouts/Layouts.jsx";

export const routerlist=[
    {
        path:'/Article',
        element:<Article />,
        meta:{title:'列表'}
    },
    {
        path:'/Sorts',
        element:<Sorts />,
        meta:{title:'你的'}
    },
    {
        path:'/My',
        element:<My />,
        meta:{title:'我的'}
    },
]

const router=createBrowserRouter([
    {
        path:'/',
        element:<Layouts/>,
        children:routerlist
    }
])

export default router